package com.cloud.core.base;

import android.content.Context;
import android.content.DialogInterface;
import android.os.Message;

import com.trello.rxlifecycle3.LifecycleTransformer;

/**
 * @Author:Chen
 * @Date: 2021-01-14 10:47
 * @Description:
 */
public interface BaseView {
    void showLoading();

    void hideLoading();

    void showError();

    void showContent();

    void showEmpty();

    void onAlert(String content, DialogInterface.OnClickListener listener);

    void error(String errorMsg);

    void info(String msg);

    void success(String msg);

    void onSuccess(Message message);

    Context provideContext();

    <R> LifecycleTransformer<R> toLifecycle();
}
